







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Syntax
C# |
---|
[SerializableAttribute] public abstract class DictionaryBase<TKey, TValue> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public MustInherit Class DictionaryBase(Of TKey, TValue) |
Visual C++ |
---|
[SerializableAttribute] generic<typename TKey, typename TValue> public ref class DictionaryBase abstract |
Type Parameters
- TKey
- TValue
The type exposes the following properties.
Public Properties
Name | Description | |
---|---|---|
![]() | Count |
Must be overridden to provide the number of items in the collection.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() | Item |
The indexer of the dictionary. This is used to store keys and values and
retrieve values from the dictionary. The setter
accessor must be overridden in the derived class.
|
![]() | Keys |
Returns a collection of the keys in this dictionary.
|
![]() | Values |
Returns a collection of the values in this dictionary. The ordering of
values in this collection is the same as that in the Keys collection.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | ICollection<(Of <T>)>..::IsReadOnly | (Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::IsSynchronized |
Indicates whether the collection is synchronized.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | ICollection..::SyncRoot |
Indicates the synchronization object for this collection.
(Inherited from CollectionBase<(Of <T>)>.) |
![]() ![]() | IDictionary..::IsFixedSize |
Returns whether this dictionary is fixed size. This implemented always returns false.
|
![]() ![]() | IDictionary..::IsReadOnly |
Returns if this dictionary is read-only. This implementation always returns false.
|
![]() ![]() | IDictionary..::Item |
Gets or sets the value associated with a given key. When getting a value, if this
key is not found in the collection, then null is returned. When setting
a value, the value replaces any existing value in the dictionary. If either the key or value
are not of the correct type for this dictionary, an ArgumentException is thrown.
|
![]() ![]() | IDictionary..::Keys |
Returns a collection of all the keys in the dictionary. The values in this collection will
be enumerated in the same order as the (overridden) GetEnumerator method.
|
![]() ![]() | IDictionary..::Values |
Returns a collection of all the values in the dictionary. The values in this collection will
be enumerated in the same order as the (overridden) GetEnumerator method.
|